|
|
"Nicolas George" <nicolas$george@salle-s.org> wrote in message
news:458b8be9$1@news.povray.org...
> Hi.
>
> I often wonder how to make cylinders joining with a miter-join, that is:
>
> ------------+
> /|
> / |
> / |
> --------+ |
> | |
> | |
> | |
>
> The solution that comes to mind immediately is to use something like:
>
> union {
> intersection {
> cylinder { horizontal }
> plane { diagonal, interior up }
> }
> intersection {
> cylinder { vertical }
> plane { diagonal, interior down }
> }
> }
>
> But it leads to coincident surfaces. Making the cylinders overlap is not
> good either, because near the point of the angle, the biggest cylinder is
> the wrong one.
>
> Any suggestion?
>
I may be missing something obvious to everyone else here, but why not just
use merge instead of union to get rid of the internal coincident surfaces?
camera {location <0,0,-1> look_at 0}
light_source { <-1, 0.3, -2> color rgb 1}
merge {
difference {
cylinder {-y,y*0.2,0.2}
plane {y,0 rotate z*225}
}
difference {
cylinder {-x,x*0.2,0.2}
plane {y,0 rotate z*45}
}
pigment {color rgb <1,0,0>}
clipped_by {plane {-z,0}}
rotate y*45
}
or did I missunderstand the questoin?
Regards,
Chris B.
Post a reply to this message
|
|